<?php
/* @var $this HomeworkController */
/* @var $model Homework */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'homework-form',
	'htmlOptions'=>array(
		'enctype' => 'multipart/form-data',
	),
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'DateCreated'); ?>
		<?php echo $form->textField($model,'DateCreated'); ?>
		<?php echo $form->error($model,'DateCreated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LastUpdate'); ?>
		<?php echo $form->textField($model,'LastUpdate'); ?>
		<?php echo $form->error($model,'LastUpdate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SubmittedDate'); ?>
		<?php echo $form->textField($model,'SubmittedDate'); ?>
		<?php echo $form->error($model,'SubmittedDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AcceptedDate'); ?>
		<?php echo $form->textField($model,'AcceptedDate'); ?>
		<?php echo $form->error($model,'AcceptedDate'); ?>
	</div>--><?php */?>

	<div class="row">
		<?php echo $form->labelEx($model,'tutorials_id'); ?>
		<?php echo $form->dropDownList($model,'tutorials_id', CHtml::listData(Tutorials::model()->findAll(), 'id', 'title'), array('class'=>'my-drop-down', 'options'=>array('1'=>array('selected'=>"selected")))); ?>
		<?php echo $form->error($model,'tutorials_id'); ?>
	</div>

	<div class="row">
		
		<?php echo CHtml::activeFileField($model,'document1'); ?>
		
	</div>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'homework_status_status_id'); ?>
		<?php echo $form->textField($model,'homework_status_status_id'); ?>
		<?php echo $form->error($model,'homework_status_status_id'); ?>
	</div>
--><?php */?>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Submit' : 'Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->